/*
 * Copyright (c) 2020, 2023, 3044483124@qq.com All rights reserved.
 *
 */
package itcast;

import java.util.Calendar;

/**
 * <p>Project: JavaStudy - Time
 * <p>Powered by jiangbo On 2023-02-01
 * 20:45:23
 * <p>Created by IntelliJ IDEA
 *
 * @author jiangbo [3044483124@qq.com]
 * @version 1.0
 * @since 8/17
 */
public class Time {
    public static void main(String[] args) {
        long t1 = System.currentTimeMillis();
//1665740400387
        System.out.println(t1);
        long time = 1675255587258L;
        System.out.printf("%tF %<tT %<tA %<tp%n",time);
        System.out.println();
//1970-01-01 08:00:00 星期四 上午
        System.out.printf("%tF %<tT %<tA %<tp%n",0L);
//9999,12,31 23,59,59 指定时间
        Calendar c = Calendar.getInstance();
        c.set(9999,12-1,31,23,59,59);
        System.out.println(c.getTimeInMillis());
        System.out.printf("%tF %<tT %<tA %<tp%n",c.getTimeInMillis());
    }
}


